#ifndef _KEY_H_
#define _KEY_H_

#include "sys.h"
#include "stdio.h"
#include "flexible_button.h"
#include "delay.h"
#include "SR04.h"
#include "DHT11.h"
#include "font.h"
#include "oled.h"

#define KEY_1_GPIO GPIOB
#define KEY_1_PIN GPIO_PIN_8
#define KEY_1_CLK __HAL_RCC_GPIOB_CLK_ENABLE

#define KEY_2_GPIO GPIOB
#define KEY_2_PIN GPIO_PIN_9
#define KEY_2_CLK __HAL_RCC_GPIOB_CLK_ENABLE

void KEY_Init(void);
void button_scan(void *arg);
static void user_button_init(void);

#endif
